package cn.tedu.medicalmanagementsystem.user.mapper;

import cn.tedu.medicalmanagementsystem.user.pojo.entity.UserAppointment;
import cn.tedu.medicalmanagementsystem.user.pojo.vo.UserAppointmentVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserAppointmentMapper {
    int insert(@Param("appointment") UserAppointment appointment);

    List<UserAppointmentVO> selectByUserId(@Param("userId") Long userId);

    List<UserAppointmentVO> selectByEscortId(@Param("escortId") Long escortId);

    UserAppointmentVO selectById(@Param("id") Long id);

    int update( UserAppointment userAppointment);



}